<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Product Add</title>
    <!-- Bootstrap core CSS -->
    <link href="/static/asserts/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="/static/asserts/css/dashboard.css" rel="stylesheet">
</head>

<body>
<!--引入抽取的topbar-->
<!--模板名：会使用thymeleaf的前后缀配置规则进行解析-->
<div th:replace="commons/bar::topbar"></div>

<div class="container-fluid">
    <div class="row">
        <!--引入侧边栏-->
        <div th:replace="commons/bar::#sidebar(activeUri='product')"></div>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">

            <form th:action="@{/admin/productAdd}" method="post">
                <div class="form-group">
                    <label>图片url地址</label>
                    <input name="productPicture" type="text" class="form-control" placeholder="https://cn.bing.com/keboom.jpg">
                </div>
                <div class="form-group">
                    <label>商品标题</label>
                    <input name="productTitle" type="text" class="form-control" placeholder="华为Pro10">
                </div>
                <div class="form-group">
                    <label>商品详情</label><br/>
                    <input name="productContent" type="text" class="form-control" placeholder="运行内存RAM: 8GB  CPU型号: HUAWEI Kirin 985（麒麟985） 存储容量: 8+128GB 8+256GB">
                </div>
                <div class="form-group">
                    <label>商品价格</label>
                    <input name="productPrice" type="number" class="form-control" placeholder="4999">
                </div>
                <button type="submit" class="btn btn-primary">添 加</button>
            </form>
        </main>
    </div>
</div>


<script type="text/javascript" src="/static/asserts/js/jquery-3.2.1.slim.min.js" ></script>
<script type="text/javascript" src="/static/asserts/js/bootstrap.min.js"></script>

</body>

</html>